From: Chong Yidong Date: Mon, 6 Aug 2007 16:02:12 +0000 (+0000) Subject: (png_load): Ignore png-supplied background color. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~17497 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=682731f4e6fa440d59110f803248ce73dce21df6;p=emacs.git (png_load): Ignore png-supplied background color. --- diff --git a/src/image.c b/src/image.c index 74bb1d75451..fb0420045e2 100644 --- a/src/image.c +++ b/src/image.c @@ -6359,11 +6359,15 @@ png_load (f, img) PNG_BACKGROUND_GAMMA_SCREEN, 0, 1.0); } } + /* The commented-out code checked if the png specifies a default + background color, and uses that. Since we rely on the + current frame background, it is actually OK for us to ignore + this part. + else if (fn_png_get_bKGD (png_ptr, info_ptr, &image_bg)) - /* Image contains a background color with which to - combine the image. */ fn_png_set_background (png_ptr, image_bg, PNG_BACKGROUND_GAMMA_FILE, 1, 1.0); + */ else { /* Image does not contain a background color with which